// pages/mine/dianpu/dianpu.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    arr:[]
  },

  onLoad: function (options) {

  },
  navminebuy(){
    wx.navigateTo({
      url: '/pages/mine/minebuy/minebuy',
    })
  },
  navdianpuprice(e){
    wx.navigateTo({
      url: '/pages/mine/dianpuprice/dianpuprice?id='+e.currentTarget.dataset.id,
    })
  },
  getbuy(){
    wx.request({
      url: 'https://zujieba.com/Api/storeprice/index',
      data:{uid:wx.getStorageSync('uid')},
      method:'POST',
      success:(res)=>{
        console.log(res);
        this.setData({
          arr:res.data.data
        })
        
      }
    })
},
onShow:function(){
  this.getbuy()
}

})